package tech.aistar;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

//必须通读该注解的源码
@SpringBootApplication
//开启支持servlet的注解
@ServletComponentScan(basePackages = {"tech.aistar"})
//开启mapper的注解扫描
@MapperScan(basePackages = "tech.aistar.mapper")
public class BootDemoApplication {

	public static void main(String[] args) {
		SpringApplication.run(BootDemoApplication.class, args);
	}

}
